.button {
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.button-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.button-medium {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
}

.button-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
}

.button-primary:hover:not(:disabled) {
    background-color: var(--primary-color-dark);
}

.button-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
}

.button-secondary:hover:not(:disabled) {
    background-color: var(--hover-bg);
}

.button-danger {
    background-color: transparent;
    border-color: var(--bg-danger);
    color: var(--text-danger);
}

.button-danger:hover:not(:disabled) {
    background-color: var(--danger-color-dark);
}

.circleButton {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.circleButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.circle-small {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.circle-medium {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.circle-large {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
}

.circle-primary {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
}

.circle-primary:hover:not(:disabled) {
    background-color: var(--primary-color-dark);
}

.circle-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.circle-secondary:hover:not(:disabled) {
    background-color: var(--hover-bg);
}

.circle-danger {
    background-color: var(--danger-color);
    color: var(--text-on-danger);
}

.circle-danger:hover:not(:disabled) {
    background-color: var(--danger-color-dark);
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    position: relative;
    color: transparent;
}

.loading .spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
